Solving polynomial equations tutorial